﻿using Fozzy;
using Fozzy.Family;
using System.Collections.Generic;
using System.Linq;

namespace Microsoft.FamilyShowLib
{
    public partial class Story2                                          : Fozzy.Gedcom.Story
    {
        #region Properties
            /// <summary>
            /// "Story_"
            /// </summary>
            protected override Template     Prefix                      { get { return new Template(ToString() + Statics.Underscore)                   ; } }
        #endregion

        #region Constructors

            public Story2(_Element element)                               : base(element)
            { }
            public Story2(string name)                                   : base(name)
            { }


        #endregion


            //public override void Save()
            //{
            //    // store the person's story into temp directory to be packaged into OPC later
            //            if (p.Story != null)
            //            {
            //                //string storyOldPath = Path.Combine(Path.Combine(
            //                //    Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
            //                //    App.ApplicationFolderName), p.Story.RelativePath);
            //                if (File.Exists(storyOldPath))
            //                {
            //                    string storyFile = Path.Combine(storyFolder, Path.GetFileName(p.Story.AbsolutePath));

            //                    // Remove spaces since they'll be packaged as %20, breaking relative paths that expect spaces
            //                    storyFile = ReplaceEncodedCharacters(storyFile);
            //                    p.Story.RelativePath = ReplaceEncodedCharacters(p.Story.RelativePath);

            //                    File.Copy(storyOldPath, storyFile, true);
            //                }
            //            }
            //        }
            //}

    }
}
